/**
 * 
 */
package com.armail.client.dto;

import java.util.Date;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Arpit.Rathore
 *
 */
@XmlRootElement
public class Mail{
	
	private Long id;
	private StringProperty toUser = new SimpleStringProperty();
	private StringProperty subject= new SimpleStringProperty();
	private StringProperty body = new SimpleStringProperty();
	private Boolean hasAttachment;
	private Date recievedDate;
	private Boolean isDraft;
	
	private User fromUser;
	
	private User owner;
	
	public String getSubject() {
		return subject.get();
	}
	public void setSubject(String subject) {
		this.subject.set(subject);
	}
	
	public StringProperty subjectProperty() {
		return this.subject;
	}
	
	public Boolean getHasAttachment() {
		return hasAttachment;
	}
	public void setHasAttachment(Boolean hasAttachment) {
		this.hasAttachment = hasAttachment;
	}
	public Date getRecievedDate() {
		return recievedDate;
	}
	public void setRecievedDate(Date recievedDate) {
		this.recievedDate = recievedDate;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getBody() {
		return body.get();
	}

	public void setBody(String body) {
		this.body.set(body);
	}
	
	public StringProperty bodyProperty() {
		return this.body;
	}

	public String getToUser() {
		return toUser.get();
	}

	public void setToUser(String toUser) {
		this.toUser.set(toUser);
	}
	
	public StringProperty toUserProperty() {
		return this.toUser;
	}

	public User getFromUser() {
		return fromUser;
	}

	public void setFromUser(User fromUser) {
		this.fromUser = fromUser;
	}

	public User getOwner() {
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}
	public Boolean getIsDraft() {
		return isDraft;
	}
	public void setIsDraft(Boolean isDraft) {
		this.isDraft = isDraft;
	}
}
